﻿using Application.AppService.SGAppService;
using Application.AppService.SSAppServoice;
using AutoMapper;
using Domain;
using Microsoft.AspNetCore.Mvc;

namespace UI.Controllers.Salary_management_薪酬发放管理_
{
    public class PayrollQueryController : Controller
    {
        private readonly ISGAppService sgAppServoice;
        private readonly IMapper mapper;

        public PayrollQueryController(ISGAppService sgAppServoice, IMapper mapper)
        {
            this.sgAppServoice = sgAppServoice;
            this.mapper = mapper;
        }
        public IActionResult Index()
        {
            return View();
        }

        public IActionResult Index1()
        {
            return View();
        }
        public IActionResult Index2() { 
            return View();
        }

        [HttpPost("TJFYSG")]
        public IActionResult TJFYSG(string SalaryGrantId, string gzc, DateTime startDate, DateTime endDate, int page, int pageSize, string ChangeStatus)
        {

            SGFenYe sg = sgAppServoice.DateSGAsync(SalaryGrantId, gzc, startDate, endDate, page, pageSize);
            return Json(sg);
        }
    }
}
